package com.zyy.prototype.demo02;

import java.util.Date;

/**
 * @Description: 类描述
 * @Author: zyy
 * @Date: 2023/07/24 21:24
 */
public class Video implements Cloneable {

    private String name;

    private Date createTime;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        Video obj = (Video) super.clone();
        obj.createTime = (Date) this.createTime.clone();
        return obj;
    }

    public Video() {
    }

    public Video(String name, Date createTime) {
        this.name = name;
        this.createTime = createTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Video{" +
                "name='" + name + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
